/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import java.io.File;
import java.io.FileWriter;

/**
 * <p>Project: jse2302 - Dir1
 * <p>Powered by webrx On 2023-06-26 17:46:42
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Dir2 {
    public static void main(String[] args) {
        File f = new File("abc");
        if (!f.exists()) {
            f.mkdirs();
        }

        try(var o = new FileWriter("abc/user.txt",true)){
            o.write(97);
            o.write("\r\n97");
        }catch (Exception e){

        }

        if(f.exists()) f.delete();

    }
}
